extends "../cTDP/cTDP.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "隐士"
	lv = 2
	attCoe.atkRan = 2
	attCoe.atk = 30 / 8.5 * 2 / 2
	attCoe.maxHp = 640 / 112.5 / 2
	addSkillTxt("树木亲和：开局随机召唤一棵树[附加20%自身血量]")

func _onBattleStart():
	._onBattleStart()
	var n = 1
	if sys.test:n = 29
	for j in range(n):
		var ids = str(sys.rndRan(1,5))
		ids = "cex___Hide_tree" + ids
		var ncha = newChara(ids,self.cell)
		if !ncha:
			var cells = utils.getAllyCells(team)
			for i in cells:
				ncha = newChara(ids,i)
				if ncha:break
		if ncha:
			ncha.attInfo.maxHp += att.maxHp * 0.2
			ncha.upAtt()
			ncha.plusHp(ncha.att.maxHp)
		#yield(reTimer(0.01),"timeout")
